﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Robin.Domain.Entities;
using Robin.NHibernate.EntityMappings;

namespace Smart.Project.Data
{
    public class MRoleMap : EntityMap<MRole, string>
    {
        public MRoleMap() : base("PM_ROLE")
        {
            Id(x => x.Id);
            Map(x => x.ROLENAME);
            Map(x => x.DEPICT);
            Map(x => x.BYNAME);
        }
    }
    /// <summary>
    /// 部门
    /// </summary>
    public class MRole : Entity<string>
    {
        /// <summary>
        /// 名称
        /// </summary>
        public virtual string ROLENAME { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public virtual string DEPICT { get; set; }
        /// <summary>
        /// 别名
        /// </summary>
        public virtual string BYNAME { get; set; }
    }
}
